<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class File extends BaseModel
{
    public function getStatusTextAttr($value, $data)
    {
        $status = [
            0 => '待上传',
            1 => '正常',
            2 => '已失效',
            3 => '已删除',
        ];
        return $status[$data['status']];
    }
}
